package com.jkkc.lib.base.util.usb

import android.hardware.usb.UsbDevice

/**
 * Author:LiXian
 * <p>
 * Desc:USB状态改变监听
 * Version:1.0
 * date 2023/2/13 10:40
 */
interface IUsbChangedListener {

    /**
     * 插入USB设备
     */
    fun insertUsb(isHadPermission: Boolean, usbDevice: UsbDevice?)

    /**
     * 申请权限结果
     */
    fun applyPermissionResult(isHadPermission: Boolean, usbDevice: UsbDevice?)

    /**
     * 移除USB设备
     */
    fun removeUsb(usbDevice: UsbDevice?)
}